PROJECT (LIBCXX)

CMAKE_MINIMUM_REQUIRED (VERSION 2.6)

SET(LIBDATE_VERSION_MAJOR "0")
SET(LIBDATE_VERSION_MINOR "1")
SET(LIBDATE_VERSION_PATCH "0")
SET(LIBDATE_VERSION "${LIBDATE_VERSION_MAJOR}.${LIBDATE_VERSION_MINOR}.${LIBDATE_VERSION_PATCH}")

OPTION(BUILD_SHARED_LIBS "Buil dynamic library" OFF)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

ADD_LIBRARY (CXX CXXlib.cc)

INSTALL(TARGETS CXX
  DESTINATION lib
  PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
  OWNER_WRITE
  )

INSTALL(FILES CXXlib.h
  DESTINATION include
  PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
)
